js detect screen size change

76

Get width of screen on resize event -

@HostListener('window:resize', ['$event'])
onResize(event) {
  this.innerWidth = window.innerWidth;
}

Comments

Submit
0 Comments